package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.entityVo.AppletShopVo;
import com.antdesignbackend.backend.mapper.AppletShopMapper;
import com.antdesignbackend.backend.service.AppletShopService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AppletShopServiceImpl implements AppletShopService {

    @Autowired
    AppletShopMapper appletShopMapper;

    @Override
    public List<AppletShopVo> getShopView(QueryWrapper<AppletShopVo> appletShopVoQueryWrapper, Page<AppletShopVo> page) {
        return appletShopMapper.getShopView(appletShopVoQueryWrapper,page);
    }

    @Override
    public Integer count(QueryWrapper<AppletShopVo> queryWrapper) {
        return appletShopMapper.count(queryWrapper);
    }
}
